home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Mac OS 8.5 Updaters / RealPC⁄Soft Windows / SoftWindows / SoftWindows Upgrade Disk / INSIGNIA / VMMPATCH.BAT < prev    next >
Encoding:
DOS Batch File  |  1998-08-24  |  1.7 KB  |  62 lines

  1. rem [
  2. rem    Name:        u.vmmpatch.bat
  3. rem
  4. rem    Derived from:    (original)
  5. rem
  6. rem    Author:        Clive Standbridge
  7. rem
  8. rem    Created on:    July 1997
  9. rem
  10. rem    Sccs ID:    @(#)u.vmmpatch.bat    1.2 10/13/97
  11. rem
  12. rem    Coding Stds:    
  13. rem
  14. rem    Purpose:    Windows 95 batch file for patching the Windows 95 Vxd
  15. rem            library VMM32.VXD. This may be called during either the
  16. rem            DOS or Windows phase of the upgrade, depending on the
  17. rem            type of upgrade.
  18. rem
  19. rem    Parameters:    1    "new" :    apply the patch for newly-installed OS only. 
  20. rem                "old" :    apply the patch for existing OS only. 
  21. rem            2    new serial number (8 hex digits)
  22. rem            3    old serial number (8 hex digits)
  23. rem            4    host OS type i.e. "mac" or "unix"
  24. rem
  25. rem    Copyright 1997 Insignia Solutions PLC. All rights reserved.
  26. rem ]
  27.  
  28.  
  29. REM  Determine Windows 95 OS installation state: existing or new installation?
  30. ibatch vmmNewOS = 0x%2 & 0xF000 %#lx
  31. ibatch vmmOldOS = 0x%3 & 0xF000 %#lx
  32. itest 0x%3 ">=" 0xF0000000
  33. if errorlevel 1 itest "%vmmOldOS%" "<" "%vmmNewOS%"
  34. if errorlevel 1 goto new_%1
  35.                 goto old_%1
  36.  
  37. :new_new
  38. :old_old
  39. REM  OS install state matches the condition; do the patch.
  40.  
  41. REM Create INSPAT95.EXE in C:\INSIGNIA
  42. c:\insignia\inspatch c:\insignia\patch.pat c:\windows\wininit.exe c:\insignia\inspat95.exe    >>c:\insignia\up.log
  43.  
  44. REM If we have our Windows95 patcher we can proceed
  45. if not exist c:\insignia\inspat95.exe goto end
  46.  
  47. REM Determine which components to patch
  48. set vmmFlags=-$
  49.  
  50. REM Save and patch VMM32.VXD
  51. REM VMM / IOS / VTD / VTDAPI / VMOUSE
  52. call patchone vmm32.vxd c:\windows\system %vmmFlags%
  53. set vmmFlags=
  54.  
  55. goto end
  56.  
  57. :new_old
  58. :old_new
  59. REM  OS install state does not match the condition; do nothing.
  60.  
  61. :end
  62.